package protocol;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * @author David
 */
public class ProcotolFrameDecoder extends LengthFieldBasedFrameDecoder {

    public ProcotolFrameDecoder() {
        this(1024, 12, 4, 0, 0);
    }

    /**
     * @param maxFrameLength 包最大长度
     * @param lengthFieldOffset length所在的位置离开头有多远
     * @param lengthFieldLength length占几个字节
     * @param lengthAdjustment 内容离length后有多远
     * @param initialBytesToStrip 是否删掉开头几个字节
     */
    public ProcotolFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
    }
}
